/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.railway.classes;

import java.util.Objects;

/**
 *
 * @author Kenny
 */
public class Station {

    private Integer order;
    private Integer sid;
    private String stationName;

    public Station() {
    }

    public Station(Integer order, Integer sid, String stationName) {
        this.order = order;
        this.sid = sid;
        this.stationName = stationName;
    }

    public Integer getOrder() {
        return order;
    }

    public void setOrder(Integer order) {
        this.order = order;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    @Override
    public String toString() {
        return stationName;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 29 * hash + Objects.hashCode(this.order);
        hash = 29 * hash + Objects.hashCode(this.sid);
        hash = 29 * hash + Objects.hashCode(this.stationName);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Station other = (Station) obj;
        if (!Objects.equals(this.sid, other.sid)) {
            return false;
        }
        return true;
    }
}
